﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartConference.Domain
{
    /// <summary>
    /// 角色信息
    /// </summary>
    [Table("RoleInfo")]
    public class RoleInfo:BaseEntity
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        [Key]
        public long Id { get; set; }

        /// <summary>
        /// 职务名称（角色名称）
        /// </summary>
        public string RoleName { get; set; } = string.Empty;

        /// <summary>
        /// 状态
        /// </summary>
        public RoleStatus RoleStatus { get; set; }

        /// <summary>
        /// 成员数量
        /// </summary>
        public int MemberCount { get; set; }

        /// <summary>
        /// 部门描述
        /// </summary>
        public string DepartmentDescription { get; set; } = string.Empty;
        /// <summary>
        /// 内容备注
        /// </summary>
        public string ContentDesc { get; set; } = string.Empty;
    }

    /// <summary>
    /// 角色状态
    /// </summary>
    public enum RoleStatus
    {
        /// <summary>
        /// 启用
        /// </summary>
        Enabled = 0,

        /// <summary>
        /// 禁用
        /// </summary>
        Disabled = 1
    }
}
